$(function () {
    // alert(111)
    var shopId = getQueryString('shopId');
    // var shopId = getQueryString('shopId');
    var shopInfoUrl = '/shopadmin/getshopmanagementinfo?shopId=' + shopId;
    // alert(shopInfoUrl);
    $.getJSON(shopInfoUrl,function (data) {
        if(data.redirect){
            window.location.href = data.url;
            alert(111)
        }else {
            if(data.shopId != undefined && data.shopId != null){
                shopId = data.shopId;
            }

            $('#shopInfo').attr('href', '/shopadmin/shopedit?shopId=' + shopId);
            alert(shopId);
        }
    });
});